import web

render = web.template.render('templates/', base='VLayout')

db = web.database(dbn='mysql', user = 'root', pw = '123', db = 'py_cgtaste')

web.template.Template.globals['render'] = render
web.template.Template.globals['db'] = db